\documentclass{standalone}

\usepackage{pgfplots}
\usepgfplotslibrary{statistics}

\begin{document}
  \begin{tikzpicture}
    \begin{axis}[title={Concurrent Bag Add() performance}, % Title of the graph
                 xtick={2,4,8,16,32,64,128,256},    % The ticks on the x-axis
                 xlabel={number of threads},        % Label of the x-axis
                 ylabel={time in [ms]},             % Label of the y-axis
                 legend style={
                   at={(1.05,0.95)},                % Position of the legend anchor
                   anchor=north west                % The legend anchor
                 }]

      % Each graph is added via \addplot and a .data file, and
      % add a legend entry for the previous graph.
      \addplot table {\DATAPATH/avg/time/smallbench_cbag_add_tra_100.add.data};
      \addlegendentry{100 items}

      \addplot table {\DATAPATH/avg/time/smallbench_cbag_add_tra_1000.add.data};
      \addlegendentry{1000 items}

      \addplot table {\DATAPATH/avg/time/smallbench_cbag_add_tra_10000.add.data};
      \addlegendentry{10000 items}

    \end{axis}
  \end{tikzpicture}
\end{document}
